Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Check  to  See  if  a  User  Exists  in  an  NT  4  Domain  

 Content of Check to See if a User Exists in an NT 4 Domain.vbs
MD5 Hash: 0A7E832B23E9486B2EE6D989FE66648E
Set objDomain = GetObject("WinNT://fabrikam")
objDomain.Filter = Array("User")

blnFound = FALSE

For Each objUser in objDomain
If objUser.Name = "kenmyer" Then
blnFound = TRUE
Exit For
End If
Next

If blnFound = TRUE Then
Wscript.Echo "The user account exists in the domain."
Else
Wscript.Echo "The user account does not exist in the domain."
End If



   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a